package com.accenture.training.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.accenture.training.dao.ClientDAOList;
import com.accenture.training.domain.Client;

@Service
@Repository
@Qualifier("clientService")
public class ClientServiceImpl implements ClientService {
	
	@Autowired
	@Qualifier("clientDao")
	private ClientDAO clientDao;
	
	public ClientServiceImpl () {
		clientDao = new ClientDAOList();
	}
	
	public ClientDAO getDao() {
		return clientDao;
	}
	
	public void setDao(ClientDAOList dao) {
		this.clientDao = dao;
	}
	
	
	public List<Client> listAll() {
		return clientDao.listAll();
	}
	

}
